package com.ffapp.rainmonitorcustom.bean;

import android.text.TextUtils;

import java.util.Date;

import my.TimeUtils;

public class PatrolPlanListData extends BasisBean {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * XH : 2
     * ID : EBE823F201994DE2BCEEAF2C92A7C11B
     * NO : 00002
     * NAME : 人民剧场夏季消防检查
     * WORKNO : 00001
     * WORKNAME : 夏季消防检查
     * PERIOD : 1
     * UNIT : 月
     * PERIODUNIT : 1月
     * BDATE : 2018-03-01
     * EDATE : 2018-03-29
     * MONDAY : 0
     * TUESDAY : 0
     * WEDNESDAY : 0
     * THURSDAY : 0
     * FRIDAY : 0
     * SATURDAY : 1
     * WEEKDAY : 1
     * HOLIDAY : 1
     * CHECKPERSON : 王五，
     * PROJECTNO : 350203
     * OPERATIONTIME : 2018-03-14 11:00:58
     * OPERATIONMAN : 监控中心
     * RN : 2
     */

    private int XH;
    private String ID;
    private String NO;
    private String NAME;
    private String WORKNO;
    private String WORKNAME;
    private int PERIOD;
    private String UNIT;
    private String PERIODUNIT;
    private String BDATE;
    private String EDATE;
    private int MONDAY;
    private int TUESDAY;
    private int WEDNESDAY;
    private int THURSDAY;
    private int FRIDAY;
    private int SATURDAY;
    private int WEEKDAY;
    private int HOLIDAY;
    private String CHECKPERSON;
    private String PROJECTNO;
    private String OPERATIONTIME;
    private String OPERATIONMAN;
    private int RN;

    public int getXH() {
        return XH;
    }

    public void setXH(int XH) {
        this.XH = XH;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getNO() {
        return NO;
    }

    public void setNO(String NO) {
        this.NO = NO;
    }

    public String getNAME() {
        return NAME;
    }

    public void setNAME(String NAME) {
        this.NAME = NAME;
    }

    public String getWORKNO() {
        return WORKNO;
    }

    public void setWORKNO(String WORKNO) {
        this.WORKNO = WORKNO;
    }

    public String getWORKNAME() {
        return WORKNAME;
    }

    public void setWORKNAME(String WORKNAME) {
        this.WORKNAME = WORKNAME;
    }

    public int getPERIOD() {
        return PERIOD;
    }

    public void setPERIOD(int PERIOD) {
        this.PERIOD = PERIOD;
    }

    public String getUNIT() {
        return UNIT;
    }

    public void setUNIT(String UNIT) {
        this.UNIT = UNIT;
    }

    public String getPERIODUNIT() {
        return PERIODUNIT;
    }

    public void setPERIODUNIT(String PERIODUNIT) {
        this.PERIODUNIT = PERIODUNIT;
    }

    public String getBDATE() {
        return BDATE;
    }

    public void setBDATE(String BDATE) {
        this.BDATE = BDATE;
    }

    public String getEDATE() {
        return EDATE;
    }

    public boolean isInDate() {
        if (TextUtils.isEmpty(BDATE) || TextUtils.isEmpty(EDATE)) {
            return true;
        }
        if (new Date().getTime() > TimeUtils.getLongTimeByFormat(BDATE, "yyyy-MM-dd")
                && (new Date().getTime() < TimeUtils.getLongTimeByFormat(EDATE, "yyyy-MM-dd")))
            return true;
        return false;
    }

    public void setEDATE(String EDATE) {
        this.EDATE = EDATE;
    }

    public int getMONDAY() {
        return MONDAY;
    }

    public void setMONDAY(int MONDAY) {
        this.MONDAY = MONDAY;
    }

    public int getTUESDAY() {
        return TUESDAY;
    }

    public void setTUESDAY(int TUESDAY) {
        this.TUESDAY = TUESDAY;
    }

    public int getWEDNESDAY() {
        return WEDNESDAY;
    }

    public void setWEDNESDAY(int WEDNESDAY) {
        this.WEDNESDAY = WEDNESDAY;
    }

    public int getTHURSDAY() {
        return THURSDAY;
    }

    public void setTHURSDAY(int THURSDAY) {
        this.THURSDAY = THURSDAY;
    }

    public int getFRIDAY() {
        return FRIDAY;
    }

    public void setFRIDAY(int FRIDAY) {
        this.FRIDAY = FRIDAY;
    }

    public int getSATURDAY() {
        return SATURDAY;
    }

    public void setSATURDAY(int SATURDAY) {
        this.SATURDAY = SATURDAY;
    }

    public int getWEEKDAY() {
        return WEEKDAY;
    }

    public void setWEEKDAY(int WEEKDAY) {
        this.WEEKDAY = WEEKDAY;
    }

    public int getHOLIDAY() {
        return HOLIDAY;
    }

    public void setHOLIDAY(int HOLIDAY) {
        this.HOLIDAY = HOLIDAY;
    }

    public String getCHECKPERSON() {
        return CHECKPERSON;
    }

    public void setCHECKPERSON(String CHECKPERSON) {
        this.CHECKPERSON = CHECKPERSON;
    }

    public String getPROJECTNO() {
        return PROJECTNO;
    }

    public void setPROJECTNO(String PROJECTNO) {
        this.PROJECTNO = PROJECTNO;
    }

    public String getOPERATIONTIME() {
        return OPERATIONTIME;
    }

    public void setOPERATIONTIME(String OPERATIONTIME) {
        this.OPERATIONTIME = OPERATIONTIME;
    }

    public String getOPERATIONMAN() {
        return OPERATIONMAN;
    }

    public void setOPERATIONMAN(String OPERATIONMAN) {
        this.OPERATIONMAN = OPERATIONMAN;
    }

    public int getRN() {
        return RN;
    }

    public void setRN(int RN) {
        this.RN = RN;
    }
}
